package com.sunlands.qdcy.tongzhuo.feign;

import com.sunlands.qdcy.tongzhuo.config.OauthFeignConfig;
import com.sunlands.qdcy.tongzhuo.vo.BusinessResult;
import com.sunlands.qdcy.tongzhuo.vo.GroupSimpleVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created with meng.
 * User: meng5
 * Date: 2019-06-26
 * Description:
 */
@FeignClient(name = "deskmate-group-api", configuration = OauthFeignConfig.class)
public interface GroupClient {

    @GetMapping(value = "/group/simple")
    BusinessResult<List<GroupSimpleVO>> getSimpleGroupList(@RequestParam("userId") Long userId,
                                                           @RequestParam("toUserId") Long toUserId);

}